package org.nokatag.system;
/**
 * 替换文档关键字
 * @author xiefangjian
 *
 */
public class ReValueDoc {
	private String key="skin";
	private String revalue="skin";
	private String type="request";
	public static final String REQUEST="request";
	public static final String SESSION="session";
	public static final String CONST="const";
	public static final String PARAMENTER="paramenter";
	
	public ReValueDoc(String key,String revalue,String type){
		setKey(key);
		setRevalue(revalue);
		if(type.equalsIgnoreCase(REQUEST))
			setType(REQUEST);
		else if(type.equalsIgnoreCase(SESSION))
			setType(SESSION);
		else if(type.equalsIgnoreCase(CONST))
			setType(CONST);
		else if(type.equalsIgnoreCase(PARAMENTER))
			setType(PARAMENTER);
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getRevalue() {
		return revalue;
	}

	public void setRevalue(String revalue) {
		this.revalue = revalue;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
}
